import { AsideMenuPath } from '@/router/types';

export interface IAppSetting {
  configLocal: IConfigLocal;
  configMenu: IConfigMenu;
}

export interface IConfigLocal {
  locale: ILocalType; //current language
  fallback: ILocalType; // default language
}

export type ILocalType = 'zh_CN' | 'en';

export enum ILocale {
  ZH_CN = 'zh_CN',
  EN = 'en',
}

export interface IMultipleTabs {
  title: string;
  name: Omit<AsideMenuPath, AsideMenuPath.INFECTIOUSDISEASES | AsideMenuPath.EPIDEMICDISEASE>;
}

export interface IConfigMenu {
  collapse: boolean;
  mobileMenuOpen: boolean;
}

export interface IAuth {
  tokenHead: string;
  userId: number;
  token: string;
  username: string;
}

export interface IUser {
  id: number;
  personName: string;
  sex: string;
  idCard: string;
  headImg: string;
  tel: string;
  address: string;
  occupation: string;
  email: string;
  username: string;
  password: string;
  clinicId: number;
  registerTime: string;
  lastloginTime: any;
  isAdmin: boolean;
  isEnable: boolean;
  enabled: boolean;
  authorities: any;
  accountNonExpired: boolean;
  accountNonLocked: boolean;
  credentialsNonExpired: boolean;
}
